(()=>{var t={212:(t,e,n)=>{var o=n(347);t.exports=function(t,e,n){return(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},319:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},347:(t,e,n)=>{var o=n(319).default,i=n(878);t.exports=function(t){var e=i(t,"string");return"symbol"==o(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},878:(t,e,n)=>{var o=n(319).default;t.exports=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=["wix.com","editorx.com"],e="consent-policy",o="specs.cookieConsent.PolicyByGlobalPrivacyControl";function i(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),e===t||e.endsWith(`.${t}`)}function r(e){return n=t,o=e||location.hostname,n.some((t=>i(t,o)));var n,o}function s(t){var e;const n=`[;\\s ]?${t}=([\\S]+(?:;?))`,o=document.cookie.match(n);return(null==o||null==(e=o.pop())?void 0:e.replace(";",""))||void 0}const c=t=>{a(l.CONSENT_POLICY_CHANGED,[window,document],t)};function a(t,e,n){let o;!!document.documentMode?(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,!0,!1,n)):o=new CustomEvent(t,{detail:n,bubbles:!0}),e.forEach((t=>{t&&t.dispatchEvent&&t.dispatchEvent(o)}))}const l={CONSENT_POLICY_MANAGER_READY:"consentPolicyManagerReady",CONSENT_POLICIY_INITIALIZED:"consentPolicyInitialized",CONSENT_POLICY_CHANGED:"consentPolicyChanged",CONSENT_POLICY_UPDATE_REQUESTED:"consentPolicyUpdateRequested"};var u=n(212),f=n.n(u);function d(t,e){try{"function"==typeof t&&t(e)}catch(t){console&&console.error(t)}}const y={essential:!0,functional:!0,analytics:!0,advertising:!0,dataToThirdParty:!0},p={essential:!0,functional:!0,analytics:!0,advertising:!1,dataToThirdParty:!1},h={essential:!0,functional:!0,analytics:!1,advertising:!1,dataToThirdParty:!1},P={func:"functional",anl:"analytics",adv:"advertising",dt3:"dataToThirdParty",ess:"essential"};function g(){const t=s(e);if(!t||"string"!=typeof t)return!1;let n;const o={};try{const e=JSON.parse(decodeURIComponent(t));return Object.keys(P).forEach((t=>{if("number"==typeof e[t]){o[P[t]]=1===e[t]}})),n=function(t){let e;"number"==typeof t&&(e=new Date(1e3*t*60));return e}(e.ts),{defaultPolicy:!!e.temp,policy:o,createdDate:n}}catch(t){return!1}}function m(t){return JSON.parse(JSON.stringify(t))}function b(n){const o=g();if(o&&!o.defaultPolicy){const{path:o,host:r}=function(e){let n="",o="";if(t.forEach((t=>{i(t,location.hostname)&&(n=`.${t}`,o="/")})),!n&&!o){n=location.hostname;const t=e.split(location.hostname);if(o=t[1]?`${t[1]}`:"/","/"===o){const t=n.split(".");t.shift(),n=`.${t.join(".")}`}}return{host:n,path:o}}(n);return document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=${r}; path=${o};`,!0}return!1}function v(t,e){const n=g();if(n)return n;const i=function(t,e){if(n=o,"function"==typeof(null==(i=window)||null==(i=i.wixTagManager)?void 0:i.getConfig)&&"true"===(null==(s=window)||null==(s=s.wixTagManager)||null==(s=s.getConfig())||null==(s=s.experiments)?void 0:s[n])&&r(t)&&navigator.globalPrivacyControl)return h;var n,i,s;return m(e||(r(t)?p:y))}(t,e);return{defaultPolicy:!0,policy:i}}function C(t){return void 0===t&&(t=""),`${function(t){let e;return void 0===t&&(t=""),e=r()||!t?"":0===t.indexOf("http")?t:`\\\\${t}`,e}(t)}/_api/cookie-consent-policy/v1/consent-policies`}class E{constructor(){f()(this,"config",{baseUrl:""}),f()(this,"hostname",window.location.hostname),f()(this,"initRan",!1),f()(this,"getValidPolicy",(t=>{const e={},{policy:n}=this.getCurrentConsentPolicy();return"object"==typeof t&&Object.keys(y).forEach((n=>{"boolean"==typeof t[n]&&(e[n]=t[n])})),{...n,...e}})),f()(this,"shouldTriggerConsentPolicyChanged",(t=>t.consentPolicy&&this.initRan&&this.getCurrentConsentPolicy().defaultPolicy&&JSON.stringify(t.consentPolicy)!==JSON.stringify(this.getCurrentConsentPolicy().policy))),f()(this,"init",(t=>{const e="string"==typeof t?{baseUrl:t}:{baseUrl:t.baseUrl,consentPolicy:t.consentPolicy};e.consentPolicy&&(e.consentPolicy=this.getValidPolicy(e.consentPolicy));const n=this.shouldTriggerConsentPolicyChanged(e);var o;this.initRan=!0,this.config={...this.config,...e},this.config.baseUrl=(o=this.config.baseUrl||"").endsWith("/")?o.slice(0,-1):o;const i=this.getCurrentConsentPolicy();(t=>{a(l.CONSENT_POLICIY_INITIALIZED,[window,document],t)})(i),n&&c(i)})),f()(this,"setConsentPolicy",((t,e,n,o)=>{if(void 0===t){const t="setConsentPolicy: no policy sent as parameter";n&&n(t),console.error(t)}const i=t=>{n&&n(`Failed setting policy. details: ${t}`)},r=JSON.stringify({policy:{...this.getValidPolicy(t),essential:!0},location:location.href,...this.config.baseUrl?{baseUrl:this.config.baseUrl}:{}});!function(t,e,n,o,i){const r=new XMLHttpRequest;r.open("POST",t,!0),r.onreadystatechange=()=>{if(4===r.readyState){const t=r.status;t<200||t>=300?d(n,t):d(e,r.responseText)}},r.setRequestHeader("content-type","application/json"),i&&r.setRequestHeader("authorization",i);const c=s("XSRF-TOKEN");c&&r.setRequestHeader("x-xsrf-token",c),r.send(o||null)}(C(this.config.baseUrl),(t=>{try{const n=JSON.parse(t),o={defaultPolicy:!1,policy:n.consent.policy},i=n.consent.timestamp;i&&(o.createdDate=new Date(i)),c(o),e&&e(o)}catch(t){i(t)}}),i,r,o||"")})),f()(this,"getCurrentConsentPolicy",(()=>v(this.hostname,this.config.consentPolicy))),f()(this,"_getConsentPolicyHeader",(()=>function(t,n){const o=v(t,n).policy;let i=!1;const r=Object.keys(P).reduce(((t,e)=>{const n=o[P[e]];return t[e]=n?1:0,n||(i=!0),t}),{});return i?{[e]:encodeURIComponent(JSON.stringify(r))}:{}}(this.hostname,this.config.consentPolicy)))}resetPolicy(){const t=b(this.config.baseUrl||"");return t&&setTimeout((()=>{c(this.getCurrentConsentPolicy())}),5),t}publishPolicyUpdateRequestedEvent(t){void 0===t&&(t=[]),function(t){void 0===t&&(t=[]);const e=(Array.isArray(t)?t:[]).filter(((t,e,n)=>n.indexOf(t)===e)),n=0===e.length?{}:{categories:e};a(l.CONSENT_POLICY_UPDATE_REQUESTED,[window,document],n)}(t)}}if("undefined"!=typeof window){const t=new E;O=t,function(){const t={};let e;function n(){const t=window.wixEmbedsAPI;return!r()&&t&&t.getAppToken&&t.getAppToken("22bef345-3c5b-4c18-b782-74d4085112ff")}["getCurrentConsentPolicy","resetPolicy","_getConsentPolicyHeader","publishPolicyUpdateRequestedEvent"].forEach((e=>{t[e]=function(){return O[e].apply(O,Array.from(arguments))}})),["initRan","hostname"].forEach((e=>{Object.defineProperty(t,e,{get:()=>O[e],set:t=>{"hostname"===e&&(O[e]=t)}})})),t.init=(t,n)=>(e=n||void 0,O.init(t)),t.setConsentPolicy=async(t,o,i)=>{let r="";if("function"==typeof e)try{r=await e()}catch(t){r=n()}else r=n();return O.setConsentPolicy(t,o,i,r)},Object.defineProperty(window,"consentPolicyManager",{value:Object.freeze(t),writable:!1,configurable:!1,enumerable:!0})}(),a(l.CONSENT_POLICY_MANAGER_READY,[window,document],window.consentPolicyManager)}var O})()})(); //# sourceMappingURL=app.bundle.min.js.map